import type { App } from 'vue'
import antdComponents from './lazy-import-antd'
import menu from './menu'
import form from './form'
import table from './table'
import pagination from './pagination'
import modal from './modal'
import loading from './loading'
import chart from './chart'
import breadcrumb from './breadcrumb'

const myComponents = [
  breadcrumb,
  chart,
  form,
  loading,
  menu,
  modal,
  pagination,
  table,
]

export default {
  install(app: App) {
    antdComponents.forEach((item) => {
      app.use(item)
    })

    myComponents.forEach((item) => {
      app.use(item)
    })
  },
}
